#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT([ahamolett-cds], [0.0.1], [820461770@qq.com])
AC_CONFIG_SRCDIR([include/cds/rbtree.h])
AC_CONFIG_HEADERS([include/config.h])
AC_CONFIG_MACRO_DIRS([m4])
AM_INIT_AUTOMAKE([subdir-objects foreign])
AM_SILENT_RULES([yes])

# Checks for programs.
AC_PROG_CC
LT_INIT

TARGET_CFLAGS="-I${PWD}/include -g -std=gnu11"
AC_SUBST(TARGET_CFLAGS)

# Checks for libraries.

# Checks for header files.
AC_CHECK_HEADERS([stddef.h stdlib.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
AC_C_INLINE

# Checks for library functions.
AC_CHECK_FUNCS([memmove memset])
AC_FUNC_MALLOC

AC_CONFIG_FILES([Makefile
                 include/Makefile])
AC_OUTPUT
